package free;

import java.io.IOException;
import java.io.ObjectInputStream;
import java.net.ServerSocket;
import java.net.Socket;

public class mainserver {

    public static  void main(String[] args) throws IOException {
        ServerSocket serverSocket = new ServerSocket(81);
        System.out.println(".......");
        while(true){
            Socket socket = serverSocket.accept();
            System.out.println("xxxx");
            ObjectInputStream in = new ObjectInputStream(socket.getInputStream());
            String content=in.readUTF();
            System.out.println(content);
        }
    }
}
